#ifndef DISTANCE_H
#define DISTANCE_H

#include <QMap>
#include <opencv2/opencv.hpp>

#include "camera_parameters.h"

class Distance
{
public:
	virtual ~Distance() = default;
	void setCameraParameter(const CameraParameters& cameraParameter, const QMap<QString, double>& parameters);
	virtual double calculate(cv::Mat& image) = 0;

protected:
	CameraParameters cameraParameter;
	QMap<QString, double> parameters;
};

#endif


